import request from '@/utils/request'

// 查询表配置列表
export function originalConfiguration(query) {
  return request({
    url: '/dict/primordial/list',
    method: 'get',
    params: query
  })
}

// 新增表配置
export function originalConfigurationAdd(data) {
  return request({
    url: '/dict/primordial',
    method: 'post',
    data: data
  })
}

// 查询表配置单条详情
export function originalConfigurationEdit(params) {
  return request({
    url: '/dict/primordial/'+params,
    method: 'get',
  })
}

// 修改表配置信息
export function originalConfigurationUpdate(data) {
  return request({
    url: '/dict/primordial',
    method: 'put',
    data: data
  })
}

// 删除表配置信息
// export function originalConfigurationDel(id) {
//   return request({
//     url: '/dict/primordial/' + id,
//     method: 'delete'
//   })
// }
export function originalConfigurationDel(data) {
  return request({
    url: '/dict/primordial/deleted' ,
    method: 'post',
    data
  })
}

// 导出表配置信息
export function originalConfigurationExport(params) {
  return request({
    url: '/dict/primordial/export',
    method: 'get',
  })
}